package repository.relsys.util.json.nodes;

import java.util.Collection;

import repository.relsys.domainmodel.ltool.interfaces.Feature;
import repository.relsys.domainmodel.ltool.interfaces.LearningTool;
import repository.relsys.domainmodel.ltool.interfaces.MobileDevice;
import repository.relsys.domainmodel.ltool.interfaces.OperetingSystem;
import repository.relsys.domainmodel.ltool.interfaces.ToolAvailability;
import repository.relsys.domainmodel.ltool.interfaces.ToolCost;

public class LearningToolDescriptionNode implements DescriptionNode {

	private LearningTool ltool;

	public LearningToolDescriptionNode(LearningTool ltool) {
		this.ltool = ltool;
	}

	public String getTitle() {
		return ltool.getTitle();
	}

	@Override
	public String getDescription() {
		// TODO Auto-generated method stub
		return ltool.getGeneralInfo().getDescription();
	}

	@Override
	public String getLaunchedTime() {
		// TODO Auto-generated method stub
		return ltool.getTechnicalInfo().getLaunchedTime();
	}

	@Override
	public ToolAvailability getToolAvailability() {
		// TODO Auto-generated method stub
		return ltool.getGeneralInfo().getToolAvailability();
	}

	@Override
	public ToolCost getToolCost() {
		// TODO Auto-generated method stub
		return ltool.getGeneralInfo().getToolCost();
	}

	@Override
	public String getToolURl() {
		// TODO Auto-generated method stub
		return ltool.getGeneralInfo().getToolURl();
	}

	@Override
	public String getVersion() {
		// TODO Auto-generated method stub
		return ltool.getTechnicalInfo().getVersion();
	}

	@Override
	public boolean isOpenSource() {
		// TODO Auto-generated method stub
		return ltool.getTechnicalInfo().isOpenSource();
	}

	@Override
	public boolean registration() {
		// TODO Auto-generated method stub
		return ltool.getTechnicalInfo().registration();
	}

	@Override
	public Collection<Feature> getFeatures() {
		// TODO Auto-generated method stub
		return ltool.getFeatures();
	}

	@Override
	public void setFeatures(Collection<Feature> features) {
		// TODO Auto-generated method stub
		ltool.setFeatures(features);
	}

	@Override
	public Collection<MobileDevice> getsupportedMobileDevice() {
		// TODO Auto-generated method stub
		return ltool.getTechnicalInfo().getsupportedMobileDevice();
	}

	@Override
	public Collection<OperetingSystem> getsupportedOS() {
		// TODO Auto-generated method stub
		return ltool.getTechnicalInfo().getsupportedOS();
	}

	@Override
	public String getToolImgURl() {
		// TODO Auto-generated method stub
		return ltool.getToolImgURl();
	}

}
